var date = new Date()
console.log(date.toString())
//var time = new Date('2020-06-06 06:06:06')
//var time = new Date(2020, 00, 1, 10, 10, 10);
//console.log(time)

console.log(date.getFullYear())
console.log(date.getMonth()+1)
console.log(date.getDate())
console.log(date.getHours())
console.log(date.getMinutes())
console.log(date.getSeconds())

console.log(date.getDay())
console.log(date.getTime())
